package com.jade.journal.desc;

import java.util.HashMap;
import java.util.Map;

/**
 * Appender定义。
 *
 * @author sky
 * @version 1.0 14-9-22 下午4:45
 */
public class AppenderDesc
{
    private String type;
    private Map<String, Object> props = new HashMap<String, Object>();

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public Map<String, Object> getProps()
    {
        return props;
    }

    public void setProps(Map<String, Object> props)
    {
        this.props = props;
    }

    public void setProperty(String key, Object value)
    {
        props.put(key, value);
    }

    public Object getProperty(String key)
    {
        return props.get(key);
    }
}
